package cn.wolfcode.shop.cloud.service;

import cn.wolfcode.shop.cloud.domain.SeckillOrder;

/**
 * Created by wolfcode-lanxw
 */
public interface ISeckillOrderService {

    /**
     * 根据用户id+seckillId查询已经下单的秒杀订单
     * @param userId
     * @param seckillId
     * @return
     */
    SeckillOrder findByUserIdAndSeckillId(Long userId, Long seckillId);

    /**
     * 创建秒杀订单
     * @param userId
     * @param seckillId
     * @param orderNo
     */
    void createSeckillOrder(Long userId, Long seckillId, String orderNo);
}
